#include <stdio.h>
#include <windows.h>

void exchange(int *a, int *b);

int main()
{
    int a, b;
    printf("Enter two freaking numbers!\n");
    scanf("%d%d", &a, &b);
    printf("a=%d, b=%d\n", a, b);
    printf("exchange a,b\n");
    exchange(&a, &b);
    printf("a=%d, b=%d\n", a, b);
    system("pause");
}

void exchange(int *a, int *b)
{
    int c;
    c = *a;
    *a = *b;
    *b = c;
}